package slider_verify

import (
	_ "embed"
	partner "gitee.com/binny_w/gin-partner"
	"gitee.com/binny_w/gin_starter/core"
	"net/http"
)

//go:embed image/bg1.png
var bg1 []byte

//go:embed image/bg2.png
var bg2 []byte

//go:embed image/bg3.png
var bg3 []byte

//go:embed image/block.png
var blk []byte

var bgBytes = [][]byte{bg1, bg2, bg3}

var MdlVerify *partner.CommonModel

func init() {
	core.WaitCore.Wait()

	MdlVerify = partner.NewCommonModel()

	_ = MdlVerify.RegisterGinHandler(http.MethodGet, "/slider-verify/get", get)

	_ = MdlVerify.RegisterGinHandler(http.MethodPost, "/slider-verify/check", check)

	core.Engine.RouterWithModel(core.ApiGroup, MdlVerify)
}
